<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * User
 *
 * @ORM\Table(name="user", options={"comment":"用户表"})
 * @ORM\Entity(repositoryClass="ApiBundle\Repository\UserRepository")
 */
class User
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \ApiBundle\Entity\Company
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Company")
     * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
     */
    private $company;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\District")
     * @ORM\JoinColumn(name="district_id", referencedColumnName="id", nullable=true)
     */
    private $district;

    /**
     * @var string
     *
     * @ORM\Column(name="phone", type="string", unique=true, length=11, options={"comment":"手机号码"})
     */
    private $phone;

    /**
     * @var string
     *
     * @ORM\Column(name="salt", type="string", length=6, options={"comment":"盐值"})
     */
    private $salt;

    /**
     * @var string
     *
     * @ORM\Column(name="password", type="string", length=40, nullable=true, options={"comment":"sha1(md5($password) . $salt)"})
     */
    private $password;

    /**
     * @var string
     *
     * @ORM\Column(name="token", type="string", length=40, nullable=true, options={"comment":"小程序token"})
     */
    private $token;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=12, nullable=true, options={"comment":"姓名"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="company_full_name", type="string", length=45, nullable=true, options={"default":"", "comment":"公司全称"})
     */
    private $companyFullName;

    /**
     * @var string
     *
     * @ORM\Column(name="company_address", type="string", length=45, nullable=true, options={"default":"", "comment":"公司地址"})
     */
    private $companyAddress;

    /**
     * @var string
     *
     * @ORM\Column(name="position_name", type="string", length=30, nullable=true, options={"default":"", "comment":"职位"})
     */
    private $positionName;

    /**
     * @var string
     *
     * @ORM\Column(name="email", type="string", length=50, nullable=true, options={"default":"", "comment":"email"})
     */
    private $email;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

    /**
     * @var string
     *
     * @ORM\Column(name="technology_liaisons_status", type="boolean", options={"default":2, "comment":"身份属性 科技联络人 -1失败 0申请中 1是 2其他 "})
     */
    private $technologyLiaisonsStatus;

    /**
     * @var string
     *
     * @ORM\Column(name="technology_liaisons_reason", type="string", length=255, options={"default":"", "comment":"申请科技联络人失败原因"})
     */
    private $technologyLiaisonsReason;

    /**
     * @var bool
     *
     * @ORM\Column(name="status", type="boolean", options={"default":1, "comment":"状态 1启用 0禁用"})
     */
    private $status;


}

